package com.itkim.work.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作品管理对象 yz_work
 * 
 * @author itkim
 * @date 2024-06-06
 */
public class YzWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作品唯一标识 */
    private Long workId;

    /** 外键，主表是yz_user表 */
    @Excel(name = "外键，主表是yz_user表")
    private Long userId;

    /** 报名组别 */
    @Excel(name = "报名组别")
    private String group;

    /** 作品名称 */
    @Excel(name = "作品名称")
    private String workName;

    /** 参赛姓名 */
    @Excel(name = "参赛姓名")
    private String entrantName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInfo;

    /** 实时平均分 */
    @Excel(name = "实时平均分")
    private Integer averageScore;

    /** 所属课程 */
    @Excel(name = "所属课程")
    private String course;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long visitNumber;

    public void setWorkId(Long workId) 
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setGroup(String group) 
    {
        this.group = group;
    }

    public String getGroup() 
    {
        return group;
    }
    public void setWorkName(String workName) 
    {
        this.workName = workName;
    }

    public String getWorkName() 
    {
        return workName;
    }
    public void setEntrantName(String entrantName) 
    {
        this.entrantName = entrantName;
    }

    public String getEntrantName() 
    {
        return entrantName;
    }
    public void setContactInfo(String contactInfo) 
    {
        this.contactInfo = contactInfo;
    }

    public String getContactInfo() 
    {
        return contactInfo;
    }
    public void setAverageScore(Integer averageScore) 
    {
        this.averageScore = averageScore;
    }

    public Integer getAverageScore() 
    {
        return averageScore;
    }
    public void setCourse(String course) 
    {
        this.course = course;
    }

    public String getCourse() 
    {
        return course;
    }
    public void setVisitNumber(Long visitNumber) 
    {
        this.visitNumber = visitNumber;
    }

    public Long getVisitNumber() 
    {
        return visitNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workId", getWorkId())
            .append("userId", getUserId())
            .append("group", getGroup())
            .append("workName", getWorkName())
            .append("entrantName", getEntrantName())
            .append("contactInfo", getContactInfo())
            .append("averageScore", getAverageScore())
            .append("course", getCourse())
            .append("createTime", getCreateTime())
            .append("visitNumber", getVisitNumber())
            .toString();
    }
}
